package cn.shop.utils.constant;

/**
 * 正则表达式
 *
 * @author jzw
 * @since 2021-11-16 11:00
 */
public class Regular {

	public static final String PASSWORD = "^[\\da-zA-Z~!@#$%^&*()_+]{8,16}$";

	public static final String PASSWORD_MASSAGE = "密码必须为8-16大小写字母和数字!";

	public static final String PASSWORD6 = "^[\\da-zA-Z~!@#$%^&*()_+]{6,16}$";

	public static final String PASSWORD6_MASSAGE = "密码必须为6-16大小写字母和数字!";

	public static final String ACCOUNT = "^[\\da-zA-Z~!@#$%^&*()_+]{8,16}$";

	public static final String ACCOUNT_MASSAGE = "账户必须为8-16大小写字母和数字!";

	public static final String NAME = "^[\\u4e00-\\u9fa5]+$";

	public static final String NAME_MASSAGE = "姓名只能输入中文";

	public static final String PERMISSION = "^[A-Z:]{1,20}$";

	public static final String PERMISSION_MASSAGE = "权限code必须为1-20的大写字母和符号':'组合!";

	public static final String ROLE = "^[A-Z]{1,20}$";

	public static final String ROLE_MASSAGE = "角色code必须为1-20位的大写字母!";

	public static final String RANGE = "^([0-9]{1,2}|100)$";

	public static final String RANGE_MASSAGE = "只可以输入0-100的整数!";

	public static final String IDCARD = "(^\\d{15}$)|(^\\d{18}$)|(^\\d{17}(\\d|X|x)$)";

	public static final String IDCARD_MESSAGE = "请输入合法的身份证号";

}
